package com.youlai.boot.bmp.mapper;

import com.aizuda.bpm.engine.entity.FlwProcess;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.bmp.model.entity.FormWorkflowBinding;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.bmp.model.query.FlwProcessQuery;
import com.youlai.boot.bmp.model.query.FormWorkflowBindingQuery;
import com.youlai.boot.bmp.model.vo.BizProcessVo;
import com.youlai.boot.bmp.model.vo.FormWorkflowBindingVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 单与工作流绑定Mapper接口
 *
 * @author rabit
 * @since 2025-11-04 16:22
 */
@Mapper
public interface FormWorkflowBindingMapper extends BaseMapper<FormWorkflowBinding> {

    /**
     * 获取单与工作流绑定分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<FormWorkflowBindingVO>} 单与工作流绑定分页列表
     */
    Page<FormWorkflowBindingVO> getFormWorkflowBindingPage(Page<FormWorkflowBindingVO> page, FormWorkflowBindingQuery queryParams);


    List<BizProcessVo> geBizProcessVoList(@Param("queryParams") FlwProcessQuery queryParams);

    BizProcessVo geBizProcessVoById(@Param("id") Long id);


}
